package org.eclipse.gittab.fretboard.draw2d.figures;

import org.eclipse.draw2d.Label;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;

public class StringLabel extends Label {

	private int string;

	public StringLabel(int string, String text, Color color, Font font) {

		super(text);
		if (font != null)
			setFont(font);

		setForegroundColor(color);

		setOpaque(true);

		this.string = string;
	}

	public int getHeight() {

		return getFont().getFontData()[0].getHeight();
	}

	public int getString() {
		return string;
	}
}
